package com.xgimi.locales.utils

object Constant {

    const val FIELD_PROPERTY = "property"
    const val DEF_LANG = "en-rUS"

    const val ARRAY_XML_NAME = "array"
    const val STRING_ARRAY_XML_NAME = "string-array"
    const val XML_NAME_TITLE = "xml name"
    const val ID_TITLE = "id"
//    val id_TITLE = "values"

    // 语言类型语字符的映射关系 https://henleylee.github.io/posts/2019/540305be.html
    val langMap = mapOf(
        "zh-rCN" to "中文(中国) 中文(简体)",
        "zh-rHK" to "中文繁体(中国香港省) 中文(香港)",
        "zh-rTW" to "中文繁体(中国台湾省) 中文(繁体)",

        "en-rGB" to "英语(英国) English(United Kingdom)",
        "en-rUS" to "英语(美国) English(United States)",

        "ar" to "阿拉伯语/Arabic العربية",
        "cs" to "捷克语/Czech Čeština",
        "da" to "丹麦语/Danish Dansk",
        "de" to "德语/German Deutsch",
        "el" to "希腊语/Greek Ελληνικά",
        "es" to "西班牙语/Spanish Español",
        "fi" to "芬兰语/Finnish Suomi",
        "fr" to "法语/French Français",
        "hu" to "匈牙利语/Hungarian Magyar",
        "it" to "意大利语/Italian Italiano",
        "nl" to "荷兰语/Dutch Nederlands",
        "pl" to "波兰语/Polish Polski",
        "pt" to "葡萄牙语/Portuguese Português",
        "ro" to "罗马尼亚语/Romanian Română",
        "ru" to "俄语/Russian русский",
        "sk" to "斯洛伐克语/Slovak slovenčina",
        "sv" to "瑞典语/Swedish Svenska",
        "tr" to "土耳其语/Turkish Türkçe",
        "uk" to "乌克兰语/Ukrainian українська",

        "ko" to "韩语/Korean 한국어",
        "ja" to "日语/Japanese 日本語",

        "ca" to "加泰罗尼亚语",
        "bn" to "孟加拉语",
        "bo" to "藏语",
        "fa" to "波斯语",
        "ff" to "富拉语",
        "fli" to "菲律宾语(菲律宾)",
        "fo" to "法罗语",
        "ha" to "豪萨语",
        "hr" to "克罗地亚语",
        "is" to "冰岛语",
        "ms" to "马来语",
        "nb" to "挪威语",
        "nds" to "低地德语",
        "ne" to "尼泊尔语",
        "qu" to "克丘亚语",
        "se" to "北方萨米语",
        "so" to "索马里语",
        "sq" to "阿尔巴尼亚语",
        "th" to "泰语(泰国)",
        "vi" to "越南语",
        "yo" to "约鲁巴语",
        "zu" to "祖鲁语(南非)",
    )

}
/*
values后面紧跟语种
比如
法语 values-fr
相关地区的会紧跟在后面
比如：
法语 法国	values-fr-rFR
法语	叙利亚	values-fr-rSF
法语	摩洛哥	values-fr-rMA
一般翻译都是语种为准 比如 values-fr
如果地区的比如重要，就需要区分
比如 values-en-rUS (英语 美国) values-en-rGB(英语 英国)
 */